package com.ruoyi.dwzzzy.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 资质资源对象
 * 
 * @author 张维
 * @date 2021-03-19
 */
public class QualifSource extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 资源名称 */
    @Excel(name = "资源名称")
    private String sourceName;

    /** 资源简称 */
    @Excel(name = "资源简称")
    private String sourceShortName;

    /** 资源编码 */
    @Excel(name = "资源编码")
    private String sourceCode;

    /** 资源类型(数据字典) */
    @Excel(name = "资源类型(数据字典)")
    private String sourceType;

    /** 资源介绍 */
    @Excel(name = "资源介绍")
    private String sourceIntroduce;

    /** 上传日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上传日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date uploadDate;

    /** 上传人员 */
    @Excel(name = "上传人员")
    private String uploadPerson;

    /** 维护日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "维护日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date maintainDate;

    /** 维护人员 */
    @Excel(name = "维护人员")
    private String maintainPerson;

    /** 资源备注 */
    @Excel(name = "资源备注")
    private String sourceTip;

    /**
     * 资源文件
     */
    private List<SourceFile> sourceFiles;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSourceName(String sourceName) 
    {
        this.sourceName = sourceName;
    }

    public String getSourceName() 
    {
        return sourceName;
    }
    public void setSourceShortName(String sourceShortName) 
    {
        this.sourceShortName = sourceShortName;
    }

    public String getSourceShortName() 
    {
        return sourceShortName;
    }
    public void setSourceCode(String sourceCode) 
    {
        this.sourceCode = sourceCode;
    }

    public String getSourceCode() 
    {
        return sourceCode;
    }
    public void setSourceType(String sourceType) 
    {
        this.sourceType = sourceType;
    }

    public String getSourceType() 
    {
        return sourceType;
    }
    public void setSourceIntroduce(String sourceIntroduce) 
    {
        this.sourceIntroduce = sourceIntroduce;
    }

    public String getSourceIntroduce() 
    {
        return sourceIntroduce;
    }
    public void setUploadDate(Date uploadDate) 
    {
        this.uploadDate = uploadDate;
    }

    public Date getUploadDate() 
    {
        return uploadDate;
    }
    public void setUploadPerson(String uploadPerson) 
    {
        this.uploadPerson = uploadPerson;
    }

    public String getUploadPerson() 
    {
        return uploadPerson;
    }
    public void setMaintainDate(Date maintainDate) 
    {
        this.maintainDate = maintainDate;
    }

    public Date getMaintainDate() 
    {
        return maintainDate;
    }
    public void setMaintainPerson(String maintainPerson) 
    {
        this.maintainPerson = maintainPerson;
    }

    public String getMaintainPerson() 
    {
        return maintainPerson;
    }
    public void setSourceTip(String sourceTip) 
    {
        this.sourceTip = sourceTip;
    }

    public String getSourceTip() 
    {
        return sourceTip;
    }

    public List<SourceFile> getSourceFiles() {
        return sourceFiles;
    }

    public void setSourceFiles(List<SourceFile> sourceFiles) {
        this.sourceFiles = sourceFiles;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sourceName", getSourceName())
            .append("sourceShortName", getSourceShortName())
            .append("sourceCode", getSourceCode())
            .append("sourceType", getSourceType())
            .append("sourceIntroduce", getSourceIntroduce())
            .append("uploadDate", getUploadDate())
            .append("uploadPerson", getUploadPerson())
            .append("maintainDate", getMaintainDate())
            .append("maintainPerson", getMaintainPerson())
            .append("sourceTip", getSourceTip())
            .toString();
    }
}
